import React from 'react';
import ReactDOM from 'react-dom';
import './index.scss';
// 第一步，注释掉App
// import App from './App';
// 第二步，引入路由根组件
import Route from './router/';

// import 'element-theme-default';

import * as serviceWorker from './serviceWorker';
// 第三步，替换
// ReactDOM.render(<App />, document.getElementById('root'));
ReactDOM.render(<Route />, document.getElementById('root'));

// If you want your app to work offline and load faster, you can change
// unregister() to register() below. Note this comes with some pitfalls.
// Learn more about service workers: http://bit.ly/CRA-PWA
serviceWorker.unregister()